<!--
描述：教学安排-校历信息维护组件
开发人：hqj
开发日期：2018年8月3日
-->
<template lang="pug">
    keep-alive
        kalix-table(bizKey="schoolCalendar" title='校历信息列表' v-bind:targetURL="targetURL"
        v-bind:bizDialog="bizDialog" v-bind:bizSearch="'SchoolCalendarSearch'" v-bind:btnList="btnList"
        v-bind:isFixedColumn="isFixedColumn")
            template(slot="tableColumnSlot")
                el-table-column(label="学年" align="center" width="200px")
                    template(slot-scope="scope")
                        | {{scope.row.schoolYear + '-' + (scope.row.schoolYear * 1 + 1)}}
                el-table-column(label="学期" align="center" width="100px")
                    template(slot-scope="scope")
                        | 第一学期
                kalix-date-column(prop="firstClassStartDate" label="上课起始日期" align="center" width="150px")
                kalix-date-column(prop="firstClassEndDate" label="上课结束日期" align="center" width="150px")
                kalix-date-column(prop="firstHolidayStartDate" label="假期开始日期" align="center" width="150px")
                kalix-date-column(prop="firstHolidayEndDate" label="假期结束日期" align="center" width="150px")
                el-table-column(label="学期" align="center" width="100px")
                    template(slot-scope="scope")
                        | 第二学期
                kalix-date-column(prop="secondClassStartDate" label="上课起始日期" align="center" width="150px")
                kalix-date-column(prop="secondClassEndDate" label="上课结束日期" align="center" width="150px")
                kalix-date-column(prop="secondHolidayStartDate" label="假期开始日期" align="center" width="150px")
                kalix-date-column(prop="secondHolidayEndDate" label="假期结束日期" align="center" width="150px")
</template>

<script type="text/ecmascript-6">
    import {SchoolCalendarURL, ToolButtonList} from '../../config.toml'

    export default {
        name: 'kalix-educational-schoolcalendar',
        data() {
            return {
                btnList: ToolButtonList,
                targetURL: SchoolCalendarURL,
                bizDialog: [
                    {id: 'view', dialog: 'SchoolCalendarView'},
                    {id: 'edit', dialog: 'SchoolCalendarAdd'},
                    {id: 'add', dialog: 'SchoolCalendarAdd'}
                ],
                isFixedColumn: true
            }
        },
        components: {},
        activated() {
        },
        deactivated() {
        }
    }
</script>

<style scoped lang="stylus">
</style>
